import time

from common.Utils import ForumDriver
from tests.ForumDetail import ForumDetail
from tests.ForumList import ForumList
from tests.ForumLogin import ForumLogin
from tests.ForumPartition import ForumPartition

if __name__ == "__main__":
    # ForumLogin.ForumLogin().LogFailTest1()
    logintail = ForumLogin()
    logintail.LogFailTest1()
    login = ForumLogin()
    login.LoginSucTest()
    #登录成功后
    ListBy=ForumList()
    ListBy.ForumTestByLogin()
    #进入发布页面
    # loginpush=ForumList()
    # loginpush.ForumPublishin()
    #发布为空
    # pushtail=ForumList()
    # pushtail.ForumPublishin()
    # # pushtail.ForumPublishFatil1()
    # pushtail.ForumPublishFatil2()
    # time.sleep(1)
    #发布内容
    # push1=ForumList()
    # push1.ForumPublishin()
    #发布JAVA
    # push1.ForumPublishSuc1()
    #发布C++
    # push1.ForumPublishSuc2()
    #发布前端
    # push1.ForumPublishSuc3()
    #发布MySql
    # push1.ForumPublishSuc4()
    #
    # push1.ForumPublishSuc5()
    #
    # push1.ForumPublishSuc6()
    # #
    # push1.ForumPublishSuc7()
    # #
    # push1.ForumPublishSuc8()
    # #
    # push1.ForumPublishSuc9()
    #进入分区
    # partitionin=ForumPartition()
    # partitionin.Partition1()
    # partitionin.Partition2()
    # partitionin.Partition3()
    # partitionin.Partition4()
    # partitionin.Partition5()
    # partitionin.Partition6()
    # partitionin.Partition7()
    # partitionin.Partition8()
    # partitionin.Partition9()

    #进入我的帖子
    loginmypost=ForumDetail()
    # loginmypost.MyPost()
    # loginmypost.Back()
    #进入个人中心
    loginmypost.PersonalCenter()
    # loginmypost.DeletePost()
    # loginmypost.ModifyPicture()
    # loginmypost.ModifyMailbox()
    # loginmypost.ModifyPhone()
    # loginmypost.ModifyNickname()
    # loginmypost.ModifyPassword()
    # loginmypost.Back()
    # loginmypost.Back()


    ForumDriver.driver.quit()